package block;

import com.sun.org.apache.bcel.internal.generic.NEW;

public class Text {
    public static void main(String[] args) {
        //目标：认识两种代码块，了解他们的特点和基本作用
        System.out.println(Student.number); //静态代码块执行了  23
        System.out.println(Student.number);//23
        System.out.println(Student.number);//23
        System.out.println("----------------------------");

        Student s1 = new Student();
        Student s2 = new Student("张三");
        System.out.println(s2);

    }
}
